package cn.yinyu.queue.module.ecg.controller.admin.devmanage.vo;

import cn.yinyu.queue.module.ecg.dal.dataobject.patient.PatDetails;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备 Response Flatten VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceRespFlattenVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15567")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317")
    @ExcelProperty("设备编号")
    private String devId;

    @Schema(description = "设备固有编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317")
    @ExcelProperty("设备固有编号")
    private String devCodeIntrinsic;

    @Schema(description = "设备医院编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317")
    @ExcelProperty("设备医院编号")
    private String devCodeHosp;

    @Schema(description = "设备科室编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317")
    @ExcelProperty("设备科室编号")
    private String devCodeDept;

    @Schema(description = "分类名", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("分类名")
    private String category;

    @Schema(description = "品牌", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("品牌")
    private String brand;

    @Schema(description = "型号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("型号")
    private String model;

    @Schema(description = "采购日期")
    @ExcelProperty("采购日期")
    private LocalDate purchaseDate;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "状态日期")
    @ExcelProperty("状态日期")
    private LocalDate stateDate;

    /**
     * 0 - 空闲 10 - 使用中 20 - 已遗失
     */
    @Schema(description = "状态")
    @ExcelProperty("状态")
    private Integer state;

    @Schema(description = "拆装编号")
    @ExcelProperty("拆装编号")
    private Long rentId;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String comment;

    //@Schema(description = "患者详情")
    //@ExcelProperty("患者详情")
    //private PatDetails patDetails;
    @Schema(description = "患者ID")
    @ExcelProperty("患者ID")
    String patId;
    @Schema(description = "患者名")
    @ExcelProperty("患者名")
    String patName;
    @Schema(description = "患者手机")
    @ExcelProperty("患者手机")
    String patMobile;
    @Schema(description = "患者科室编号")
    @ExcelProperty("患者科室编号")
    String patDeptCode;
    @Schema(description = "患者科室")
    @ExcelProperty("患者科室")
    String patDeptDesc;
    @Schema(description = "患者病区编号")
    @ExcelProperty("患者病区编号")
    String patWardCode;
    @Schema(description = "患者病区")
    @ExcelProperty("患者病区")
    String patWardDesc;
    @Schema(description = "患者床号")
    @ExcelProperty("患者床号")
    String patBedNo;
}

